﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Judgement
    {
        private static int Pscore = 0;
        private static int Cscore = 0;
        private static int equal = 0;
        private static int count1 = 0;

        public static int Pscore1 { get => Pscore; set => Pscore = value; }
        public static int Cscore1 { get => Cscore; set => Cscore = value; }
        public static int Equal { get => equal; set => equal = value; }
        public static int Count1 { get => count1; set => count1 = value; }

        public static void Judge1(int num1,int num2,string name)
        {
            if (num1 - num2 == 1||num1-num2 == -2)
            {
                Console.WriteLine("恭喜,"+ name + "  赢了");
                Pscore1++;
            }else if (num1 == num2)
            {
                Console.WriteLine("和局！真衰，等着瞧吧！！！");
                Equal++;
            }
            else
            {
                Console.WriteLine("笨蛋," + name + "  输了");
                Cscore1++;
            }
            Count1 = Pscore1 + Cscore1 + Equal;
        }
        
        
    }
}
